﻿@model JSonTest.Customers

@{
		ViewBag.Title = "Delete Customer";
}

@section Scripts {
		<script>
				$(document).ready(function() {
						$('#myModal').modal('toggle');
				});
		</script>
}

<h2>@ViewBag.Title</h2>
<hr />




<div class="modal fade" id="myModal" role="dialog">
		<div class="modal-dialog modal-lg">
				<div class="modal-content">
						<div class="modal-header">
								<h3>Are you sure you want to delete @Model.Firstname @Model.Lastname</h3>
						</div>

						<div class="modal-body">
								<dl class="dl-horizontal">
										<dt>
												@Html.DisplayNameFor(model => model.Firstname)
										</dt>

										<dd>
												@Html.DisplayFor(model => model.Firstname)
										</dd>

										<dt>
												@Html.DisplayNameFor(model => model.Lastname)
										</dt>

										<dd>
												@Html.DisplayFor(model => model.Lastname)
										</dd>

										<dt>
												@Html.DisplayNameFor(model => model.Telephone)
										</dt>

										<dd>
												@Html.DisplayFor(model => model.Telephone)
										</dd>

										<dt>
												@Html.DisplayNameFor(model => model.Birthdate)
										</dt>

										<dd>
												@Html.DisplayFor(model => model.Birthdate)
										</dd>

										<dt>
												@Html.DisplayNameFor(model => model.City)
										</dt>

										<dd>
												@Html.DisplayFor(model => model.City)
										</dd>

								</dl>

								@using (Html.BeginForm())
								{
										@Html.AntiForgeryToken()

										<div class="form-actions no-color modal-footer">
												@*<input type="submit" value="Delete" class="btn btn-danger" /> |
														@Html.ActionLink("Back to List", "Index", null, new { @class = "btn btn-primary" })*@

												<button type="submit" value="delete" class="btn btn-danger"><span class="glyphicon glyphicon-trash">&nbsp;</span>Delete</button>
												<a href="@Url.Action("Index", "Home")" class="btn btn-primary"><span class="glyphicon glyphicon-arrow-left">&nbsp;</span>Back to List</a>
										</div>
								}


						</div>

				</div>
		</div>
</div>




















@*<h3>Are you sure you want to delete this?</h3>
<div>
		<h4>Customers</h4>
		<hr />
		<dl class="dl-horizontal">
				<dt>
						@Html.DisplayNameFor(model => model.Firstname)
				</dt>

				<dd>
						@Html.DisplayFor(model => model.Firstname)
				</dd>

				<dt>
						@Html.DisplayNameFor(model => model.Lastname)
				</dt>

				<dd>
						@Html.DisplayFor(model => model.Lastname)
				</dd>

				<dt>
						@Html.DisplayNameFor(model => model.Telephone)
				</dt>

				<dd>
						@Html.DisplayFor(model => model.Telephone)
				</dd>

				<dt>
						@Html.DisplayNameFor(model => model.Birthdate)
				</dt>

				<dd>
						@Html.DisplayFor(model => model.Birthdate)
				</dd>

				<dt>
						@Html.DisplayNameFor(model => model.City)
				</dt>

				<dd>
						@Html.DisplayFor(model => model.City)
				</dd>

		</dl>

		@using (Html.BeginForm()) {
				@Html.AntiForgeryToken()

				<div class="form-actions no-color">
						<input type="submit" value="Delete" class="btn btn-default" /> |
						@Html.ActionLink("Back to List", "Index", "Home")
				</div>
		}
</div>*@
